#include "dlog/dlog.h"

namespace util {
namespace dlog {

const char *only_filename_func(const char *pwd_filename) {
  size_t i = 0, lst = 0;
  for (; pwd_filename[i] != '\0'; i++) {
    if (pwd_filename[i] == '/' || pwd_filename[i] == '\\') {
      lst = i + 1;
    }
  }
  return pwd_filename + lst;
}

} // namespace dlog
} // namespace util
